import { defineStore } from "pinia"

const orderInfo = defineStore(
  'info',
  {
    state: () => ({
      rowData: [],
      rowId: '1', // 订单id
      tagName:'',
    }),
    actions: {
      setRowData(data: any) {
        this.rowData = data
      },
      setRowId(id: any) {
        this.rowId = id
      },
      setTagName(tagName: any) {
        this.tagName = tagName
      },
    }
  })

  export default orderInfo